package com.example.clouduser.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class UserAction {

    @RequestMapping("user")
    String user(HttpServletRequest request){
        final int port = request.getServerPort();
        return "user : " + port;
    }
}
